package com.dg.cuckoo.admin.service.impl;

import com.dg.cuckoo.admin.dto.proCarryOut.ProCarryOutDto;
import com.dg.cuckoo.admin.service.ProConstructionService;
import com.dg.cuckoo.admin.service.ProphaseService;
import com.dg.cuckoo.common.utils.PageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class ProConstructionServiceimpl implements ProConstructionService {

    @Autowired
    private ProphaseService service;

    @Override
    public void save(String projectId, ProCarryOutDto dto, MultipartFile[] file) throws Exception {
        service.powerfulSave(projectId,dto,file,4);
    }

    @Override
    public void update(String id, String projectId, MultipartFile[] files, ProCarryOutDto dto) throws Exception {
        service.powerfulUpdate(id,projectId,files,dto,4);
    }

    @Override
    public PageModel page(Integer page, Integer pageSize, String projectId) {
        return service.powerfulPage(page,pageSize,projectId,4);
    }
}
